<template>
  <div class="project">faceresult</div>
</template>
<script>
export default {
  data() {
    return {};
  },
  created: () => {
    //拿到路由传参
    let href = window.location.search || "";
    let result = {};

    if (href) {
      href
        .split("?")[1]
        .split("&")
        .forEach((item) => {
          let key = item.split("=")[0];
          let value = item.split("=")[1];
          result[key] = value;
        });
    }
    console.log(result);
  },
};
</script>
